package dao;

import org.apache.ibatis.annotations.Param;
import pojo.Student;

import java.util.List;

public interface StudentDao {

    // 定义行为  crud
    // 查询用户
    // 多参数入参  加注解
    List<Student> findAll(@Param("student") Student student, @Param("offset") int offset, @Param("pageSize") int pageSize);

    int addStudent(Student student);

    Student findStudentById(int id);

    int updateStudent(Student student);

    int deleteStudentById(int id);

    int count(Student student);

    int login(Student student);

    // 增加

    // 删除

    // 修改



}
